import Http from "~/apis/utils/http";

class SystemRole extends Http {
  getAll() {
    return this.get("sysRole/all");
  }

  async filterData(params?: any) {
    return await this.post("sysRole/filter", params);
  }

  deleteById(id: any) {
    return this.delete(`sysRole/delete/${id}`);
  }

  deleteMany(ids: any) {
    return this.post("sysRole/deleteMany", ids);
  }

  update(model: any) {
    return this.post("sysRole/update", model);
  }

  create(model: any) {
    return this.post("sysRole/create", model);
  }
}

export default new SystemRole();
